cmake_minimum_required(VERSION 3.11)
project(test_cache VERSION 0.0.1)

set(CMAKE_CXX_STANDARD 20)

set(CMAKE_CXX_FLAGS_DEBUG, "-fPIC -o0 -g Wall")
set(CMAKE_CXX_FLAGS_RELEASE, "-fPIC -o2 -g -Wall")

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)

add_subdirectory(open-vip)
init_xspcomm()

# add_subdirectory(mvm)
add_subdirectory(src/cpp)
